vim9script noclear

if exists("g:lifevim")
	finish
endif

g:lifevim = 1

import autoload 'life.vim'

augroup life_vim
	autocmd!
	autocmd! VimEnter * life.Startup()
	autocmd! FocusGained * life.Resume()
	autocmd! FocusLost * life.Suspend()
augroup END

command! -nargs=0 Life life.Show()
